package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecommendSongsMapper;
import com.ruoyi.system.domain.RecommendSongs;
import com.ruoyi.system.service.IRecommendSongsService;

/**
 * recommendService业务层处理
 * 
 * @author wayi
 * @date 2025-03-11
 */
@Service
public class RecommendSongsServiceImpl implements IRecommendSongsService 
{
    @Autowired
    private RecommendSongsMapper recommendSongsMapper;

    /**
     * 查询recommend
     * 
     * @param trackId recommend主键
     * @return recommend
     */
    @Override
    public RecommendSongs selectRecommendSongsByTrackId(Long trackId)
    {
        return recommendSongsMapper.selectRecommendSongsByTrackId(trackId);
    }

    /**
     * 查询recommend列表
     * 
     * @param recommendSongs recommend
     * @return recommend
     */
    @Override
    public List<RecommendSongs> selectRecommendSongsList(RecommendSongs recommendSongs)
    {
        return recommendSongsMapper.selectRecommendSongsList(recommendSongs);
    }

    /**
     * 新增recommend
     * 
     * @param recommendSongs recommend
     * @return 结果
     */
    @Override
    public int insertRecommendSongs(RecommendSongs recommendSongs)
    {
        return recommendSongsMapper.insertRecommendSongs(recommendSongs);
    }

    /**
     * 修改recommend
     * 
     * @param recommendSongs recommend
     * @return 结果
     */
    @Override
    public int updateRecommendSongs(RecommendSongs recommendSongs)
    {
        return recommendSongsMapper.updateRecommendSongs(recommendSongs);
    }

    /**
     * 批量删除recommend
     * 
     * @param trackIds 需要删除的recommend主键
     * @return 结果
     */
    @Override
    public int deleteRecommendSongsByTrackIds(Long[] trackIds)
    {
        return recommendSongsMapper.deleteRecommendSongsByTrackIds(trackIds);
    }

    /**
     * 删除recommend信息
     * 
     * @param trackId recommend主键
     * @return 结果
     */
    @Override
    public int deleteRecommendSongsByTrackId(Long trackId)
    {
        return recommendSongsMapper.deleteRecommendSongsByTrackId(trackId);
    }
}
